import React from 'react'
import { withRouter } from "umi"

function A(props) {
    return (
        <div>
            <h4>普通组件获取路由信息</h4>
            {props.location.pathname}
        </div>
    )
}

export default withRouter(A);